//import { getAllRoleList, isAccountExist } from '/@/api/busi/rule';
import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';

export const columns: BasicColumn[] = [
  {
    title: '项目',
    dataIndex: 'projectName',
    width: 120,
  },
  {
    title: '检查内容',
    dataIndex: 'checkContent',
    width: 120,
  },
  {
    title: '检查主要资料及方法',
    dataIndex: 'checkMethod',
    width: 120,
  },
  {
    title: '检查依据',
    dataIndex: 'checkBasis',
    width: 180,
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'projectName',
    label: '关键字查询',
    component: 'Input',
    colProps: { span: 8 },
  },
];

export const accountFormSchema: FormSchema[] = [
  {
    field: 'projectName',
    label: '项目',
    component: 'Input',
    required: true,
    labelWidth: 160,
    componentProps: {
      allowClear: false,
    }
  },

  {
    label: '检查内容',
    field: 'checkContent',
    component: 'InputTextArea',
    required: true,
    labelWidth: 160,
    componentProps: {
      allowClear: false,
    }
  },

  {
    label: ' 检查主要资料及方法',
    field: 'checkMethod',
    component: 'InputTextArea',
    required: true,
    labelWidth: 160,
    componentProps: {
      allowClear: false,
    }
  },

  {
    label: '检查依据',
    field: 'checkBasis',
    component: 'InputTextArea',
    required: true,
    labelWidth: 160,
    componentProps: {
      allowClear: false,
    }
  },
];
